<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" type="image/png" href="{% static 'app01/img/logo.png' %}">
    <title>关注列表</title>
    <!-- Slick Slider -->
    <link rel="stylesheet" type="text/css" href="{% static 'app01/css/slick.min.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'app01/css/slick-theme.min.css' %}"/>
    <!-- Feather Icon-->
    <link href="{% static 'app01/css/feather.css' %}" rel="stylesheet" type="text/css">
    <!-- Bootstrap core CSS -->
    <link href="{% static 'app01/css/bootstrap.min.css' %}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="{% static 'app01/css/style.css' %}" rel="stylesheet">

    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        ul {
            list-style: none;
        }

        #nav {
            height: 50px;
            background-color: #46474a;
        }

        #nav ul li {
            width: 120px;
            float: left;
        }

        #nav ul li a {
            display: block;
            width: 120px;
            height: 50px;
            line-height: 50px;
            text-decoration: none;
            font-size: 18px;
            /* font-weight: bold; */
            color: white;
            text-align: center;
        }

        #nav ul li a:hover {
            background-color: white;
            color: #46474a;
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
            padding: 12px 16px;
            z-index: 1;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }
    </style>
    <style type="text/css">
        li.margin {
            margin-left: 50px;
        }
    </style>
</head>
<body>
<!-- 导航栏 -->
<div id="nav" style="margin: -16px;">
    <ul>
        <li class="margin"><img src="{% static 'app01/img/logo.png' %}" style="width: 87.4px;height: 50px;">
        </li>
        <li><a href="{% url 'purchase_index' %}">购物商城</a></li>
        <li><a href="/moment/">车友圈</a></li>
        <li><a href="/view_power/">充电规划</a></li>
        <li><a href="/chatbot/botmain/">智能客服</a></li>
        <li><a href="/repair/">维修保养</a></li>

        {% if "info" in request.session.keys %}

        <li class="dropdown">
            <a href="#">
                我的</a>
            <div class="dropdown-content">
                <a href="{% url 'show_order' %}" style="color: #46474a;font-size: 17px;">购物订单</a>
                <a href="/repair/list/" style="color: #46474a;font-size: 17px;">维修订单</a>
                <a href="/infomation/" style="color: #46474a;font-size: 17px;">个人信息</a>
                <a href="/signout/" style="color: #46474a;font-size: 17px;">注销</a>
            </div>
        </li>

        {% else %}
        <li><a href="/signin/">登录 / 注册</a></li>
        {% endif %}

    </ul>
</div>
<!-- /.导航栏结束 -->

<div class="py-4">
    <div class="container">
        <div class="row">
            <!-- Main Content -->
            <main class="col col-xl-9 order-xl-2 col-lg-12 order-lg-1 col-md-12 col-sm-12 col-12">
                <div class="box shadow-sm border rounded bg-white mb-3 osahan-share-post">
                    <h5 class="pl-3 pt-3 pr-3 border-bottom mb-0 pb-3">关 注 列 表</h5>
                    <ul class="nav border-bottom osahan-line-tab" id="myTab" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab"
                               aria-controls="home" aria-selected="true">关注的人</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab"
                               aria-controls="profile" aria-selected="false">关注的圈子</a>
                        </li>
                    </ul>
                    <div class="tab-content" id="myTabContent">
                        <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                            <div class="p-3">
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="border network-item rounded mb-3">
                                            <!-- 所有关注的人 -->
                                            {% for f in follows %}
                                            <div class="p-3 d-flex align-items-center network-item-header">
                                                <div class="dropdown-list-image mr-3">
                                                    <img class="rounded-circle" src="{{ f.f_photo }}" alt="">
                                                </div>
                                                <div class="font-weight-bold">
                                                    <h6 class="font-weight-bold text-dark mb-0">{{ f.f_name}}</h6>
                                                    <div class="small text-black-50">{{ f.f_cha}}</div>
                                                    <div class="small text-black-50">{{ f.f_time}}</div>
                                                </div>
                                            </div>
                                            <div class="network-item-footer py-3 d-flex text-center">
                                                <div class="col-6 pl-3 pr-1">
                                                    <button type="button" class="btn btn-primary btn-sm btn-block">
                                                        Ta的圈子
                                                    </button>
                                                </div>
                                                <div class="col-6 pr-3 pl-1">
                                                    <button type="button"
                                                            class="btn btn-outline-primary btn-sm btn-block"><i
                                                            class="feather-user-plus"></i> 取消关注
                                                    </button>
                                                </div>
                                            </div>
                                            {% endfor %}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>

            <!-- 右栏 -->
            <aside class="col col-xl-3 order-xl-2 col-lg-12 order-lg-2 col-12">
                <div class="box mb-3 shadow-sm border rounded bg-white list-sidebar">
                    <div class="box-title p-3">
                        <h6 class="m-0">我的动态圈</h6>
                    </div>
                    <ul class="list-group list-group-flush">
                        <a href="#">
                            <li class="list-group-item pl-3 pr-3 d-flex align-items-center text-dark"><i
                                    class="feather-user-check mr-2 text-dark"></i> 我的关注 <span
                                    class="ml-auto font-weight-bold">{{ user.u_follow }}</span></li>
                        </a>
                        <a href="#">
                            <li class="list-group-item pl-3 pr-3 d-flex align-items-center text-dark"><i
                                    class="feather-message-circle mr-2 text-dark"></i> 我的粉丝 <span
                                    class="ml-auto font-weight-bold">{{ user.u_fans }}</span></li>
                        </a>
                        <a href="#">
                            <li class="list-group-item pl-3 pr-3 d-flex align-items-center text-dark"><i
                                    class="feather-users mr-2 text-dark"></i> 我的圈子 <span
                                    class="ml-auto font-weight-bold">3</span></li>
                        </a>
                    </ul>
                </div>
            </aside>
        </div>
    </div>
</div>
<!-- Bootstrap core JavaScript -->
<script src="{% static 'app01/js/jquery.min.js' %}"></script>
<script src="{% static 'app01/js/bootstrap.bundle.min.js' %}"></script>
<!-- slick Slider JS-->
<script type="text/javascript" src="{% static 'app01/js/slick.min.js' %}"></script>
<!-- Custom scripts for all pages-->
<script src="{% static 'app01/js/osahan.js' %}"></script>
</body>
</html>